package mercurius.fitness.client.util;


import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.Response;
import com.google.gwt.user.client.Command;

public abstract class AbstractResponseCommand implements Command {

	public Request request = null;
	public Response response = null;
	public String results =  null;
	
	public AbstractResponseCommand() {
		
	}
	
	public abstract void setObject(Object obj);
	
	public abstract Object getObject();
	
	public abstract void execute();
	
	public void execute(Request request, Response response, String results) {
		this.request = request;
		this.response = response;
		if(results == null) {
			results = "";
		}
		this.results = results;
		execute();
	}

}
